import request from '@/utils/request'
/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: {
      dictCode
    }
  })
}
/**
 * 分页列表
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/queryPage',
    method: 'POST',
    data
  })
}
/**
 * 报名信息分页列表
 */
export function RegqueryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRegist/queryPage',
    method: 'POST',
    data
  })
}
/**
 * 导出脱敏
 */
export function maskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRegist/applyExportMasking',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 导出不脱敏
 */
export function noMaskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkRegist/applyExportNoMasking',
    method: 'post',
    responseType: 'blob',
    data
  })
}

/**
 * 修改状态
 */
export function updateStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 删除
 */
export function deleteById(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/deleteById',
    method: 'POST',
    data
  })
}
/**
 * 新建对战
 */
export function pkInfoInsert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/insert',
    method: 'POST',
    data
  })
}
/**
 * 编辑
 */
export function pkInfoUpdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/update',
    method: 'POST',
    data
  })
}
/**
 * 详情
 */
export function pkInfoGet(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pkInfo/get',
    method: 'POST',
    data
  })
}
